#!/usr/bin/env lua

print("begin in lua")

student = Student:new()

student:Run()

--------------case 1
str = "12345"
for i=1,10 do
    str = str .. ":" .. student:getName()
end
print("------------------------", string.len(str))
student:Run2(str)

--------------case 2
--str = {}
--for i=1,1e3 do
    --str[i] = 'aa\0'
--end
--print("------------------------")
--student:Run2(table.concat(str))
--student:Run2("abc\0abc")

for i=0,9 do
    print(i, g_array[i])
end

for i=0,9 do
    g_array[i] = i * i
end


print("finish in lua")

print(string.len(student:getName()), student:getName())
